<?php

class ActionLogoff extends Action {
	public function IsPermitted(){ return !User::GetCurrent()->IsVisitor(); }
	public function GetIconName(){ return 'oxy/ico/Logoff'; }
	
 	public function Render(){
 		User::Logoff();
 		Oxygen::Redirect(new ActionFarewell());
	}

}


?>
